mountoperation: Silence gcc
authorBenjamin Otte <otte@gnome.org>
Sat, 6 Feb 2016 02:58:39 +0000 (03:58 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 11 Feb 2016 02:44:47 +0000 (03:44 +0100)
Also, printf()ing a GPid should be forbidden.

gtk/gtkmountoperation-stub.c
gtk/gtkmountoperation.c

index 7307052c0a44b504487e3ee79f11e074c1d02384..e05332406532712a7ecd6d511176bb79f56cf43f 100644 (file)
@@ -60,7 +60,7 @@ _gtk_mount_operation_kill_process (GPid      pid,
                G_IO_ERROR,
                G_IO_ERROR_NOT_SUPPORTED,
                _("Cannot kill process with PID %d. Operation is not implemented."),
-               (int) pid);
+               (int) (gssize) pid);
   return FALSE;
 }
 
index f95834d4d1898af53b592e9a349992a89da39086..f9365b0e8ad22a295b001f32385f20e81eddb93d 100644 (file)
@@ -1090,7 +1090,7 @@ add_pid_to_process_list_store (GtkMountOperation              *mount_operation,
                                     &pixbuf);
 
   if (name == NULL)
-    name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) pid);
+    name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) (gssize) pid);
 
   if (command_line == NULL)
     command_line = g_strdup ("");